import React from 'react';
import {Button, Result} from 'antd';
import {useRouter} from "next/router";

const App: React.FC = () => {
    const router = useRouter()
    const goHome = () => {
        router.push("/")
    }
    return <Result
        status="404"
        title="404"
        subTitle="Sorry, the page you visited does not exist."
        extra={<Button type="primary" onClick={goHome}>返回首页</Button>}
    />
}

export default App;
